<!-- TestSwitch.vue -->
<template>
  <div>
    <el-switch v-model="testValue" @change="handleChange"></el-switch>
    <div>当前值: {{ testValue }}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      testValue: false
    };
  },
  methods: {
    handleChange(value) {
      console.log('测试开关触发:', value);
    }
  }
};
</script>